/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * RealizarConsultaMedicaGUI.java
 *
 * Created on 14/08/2011, 06:03:39 PM
 */

package moduloConsulta;

import ModuloDiagnosticador.*;
import java.util.*;
import javax.swing.DefaultListModel;
import javax.swing.JOptionPane;

/**
 *
 * @author rayner
 */
public class RealizarConsultaMedicaGUI extends javax.swing.JFrame {
    private procesadorEntradaSalida procesador;
    private  String[] sintomasNombre;
    private ArrayList<Integer> sintomasEncontrados;
    private final int SINT_NO_PRESENTE = -1;
    private final int SINT_PRESENTE = 1;
    private final int SINT = 0;
    private DefaultListModel lmSintomas = new DefaultListModel();
    private DefaultListModel lmNoSintomas = new DefaultListModel();
    private DefaultListModel lmSiSintomas = new DefaultListModel();
   

    /** Creates new form RealizarConsultaMedicaGUI */
    public RealizarConsultaMedicaGUI() {
        initComponents();
        inicializar_estado();
    }
    private void inicializar_estado(){
        
        jcbSexo.removeAllItems();
        jcbSexo.setVisible(false);
        jcbSexo.addItem("Masculino");
        jcbSexo.addItem("Femenino");
        jtfEdad.setVisible(false);
        jtfEdad.setText("");
        
        procesador = new procesadorEntradaSalida();
        procesador.ActivarKohonen();
        sintomasNombre = procesador.getSintomasNames();
        jlSintomas.setModel(lmSintomas);
        jlSintomasPresentes.setModel(lmSiSintomas);
        String temp[] = procesador.getEnfermedadesNames();
        sintomasNombre = procesador.getSintomasNames();
        jcbEnfermedades.removeAllItems();
        jcbEnfermedades.addItem("Unknown");
        for(int i = 0; i < temp.length ; i ++){
            jcbEnfermedades.addItem(temp[i]);
        }
        jcbEnfermedades.setSelectedIndex(0);
    }
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        bgOpciones = new javax.swing.ButtonGroup();
        jPanel1 = new javax.swing.JPanel();
        jtfSintoma = new javax.swing.JTextField();
        jbBuscar = new javax.swing.JButton();
        jbSintomasToSi = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jlSintomas = new javax.swing.JList();
        jScrollPane4 = new javax.swing.JScrollPane();
        jlSintomasPresentes = new javax.swing.JList();
        jLabel4 = new javax.swing.JLabel();
        jbSiToSintomas = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jbCancelar = new javax.swing.JButton();
        jbRealizarConsulta = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jtaResultados = new javax.swing.JTextArea();
        jlEnfermedad = new javax.swing.JLabel();
        jcbEnfermedades = new javax.swing.JComboBox();
        jPanel5 = new javax.swing.JPanel();
        jcbSexo = new javax.swing.JComboBox();
        jtfEdad = new javax.swing.JTextField();
        jbGuardarCaso = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Ingreso de Sintomas o Signos"));

        jtfSintoma.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtfSintomaActionPerformed(evt);
            }
        });

        jbBuscar.setText("IR");
        jbBuscar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbBuscarActionPerformed(evt);
            }
        });

        jbSintomasToSi.setText(">");
        jbSintomasToSi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbSintomasToSiActionPerformed(evt);
            }
        });

        jlSintomas.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane1.setViewportView(jlSintomas);

        jlSintomasPresentes.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane4.setViewportView(jlSintomasPresentes);

        jLabel4.setText("Sintomas y signos presentes");

        jbSiToSintomas.setText("<");
        jbSiToSintomas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbSiToSintomasActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jtfSintoma, javax.swing.GroupLayout.PREFERRED_SIZE, 392, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jbBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jScrollPane1))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jbSiToSintomas, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jbSintomasToSi, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(51, 51, 51)
                        .addComponent(jLabel4))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 452, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jtfSintoma, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jbBuscar))
                        .addGap(6, 6, 6)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 247, Short.MAX_VALUE)
                            .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 247, Short.MAX_VALUE))
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addComponent(jbSintomasToSi)
                        .addGap(75, 75, 75)
                        .addComponent(jbSiToSintomas)
                        .addGap(55, 55, 55))))
        );

        jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel1.setFont(new java.awt.Font("Ubuntu", 1, 18));
        jLabel1.setText("Realizar Consulta Médica");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap(401, Short.MAX_VALUE)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 252, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(376, 376, 376))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jbCancelar.setText("Cancelar");
        jbCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbCancelarActionPerformed(evt);
            }
        });

        jbRealizarConsulta.setText("Realizar Consulta");
        jbRealizarConsulta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbRealizarConsultaActionPerformed(evt);
            }
        });

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Resultados"));

        jtaResultados.setColumns(20);
        jtaResultados.setRows(5);
        jScrollPane2.setViewportView(jtaResultados);

        jlEnfermedad.setText("enfermedad probable: ");

        jcbEnfermedades.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                        .addComponent(jlEnfermedad, javax.swing.GroupLayout.DEFAULT_SIZE, 270, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jcbEnfermedades, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 550, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addContainerGap(18, Short.MAX_VALUE)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlEnfermedad)
                    .addComponent(jcbEnfermedades, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        jcbSexo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                .addGap(172, 172, 172)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jtfEdad, javax.swing.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE)
                    .addComponent(jcbSexo, 0, 181, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jcbSexo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jtfEdad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(104, Short.MAX_VALUE))
        );

        jbGuardarCaso.setText("Guardar Caso");
        jbGuardarCaso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbGuardarCasoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(58, 58, 58)
                        .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGap(489, 489, 489)
                        .addComponent(jbGuardarCaso, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jbRealizarConsulta, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jbCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(19, 19, 19))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(12, 12, 12)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jbRealizarConsulta)
                    .addComponent(jbCancelar)
                    .addComponent(jbGuardarCaso))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jbCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbCancelarActionPerformed
        // TODO add your handling code here:
        new MenuPrincipalGUI().setVisible(true);
        dispose();
    }//GEN-LAST:event_jbCancelarActionPerformed

    private void jtfSintomaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtfSintomaActionPerformed
        // TODO add your handling code here:
        String query = jtfSintoma.getText();
        sintomasEncontrados = procesador.buscarSintomas(query);
        lmSintomas.clear();
        for(int i = 0; i < sintomasEncontrados.size(); i++){
            lmSintomas.addElement(sintomasNombre[sintomasEncontrados.get(i)]);
        }
    }//GEN-LAST:event_jtfSintomaActionPerformed

    private void jbBuscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbBuscarActionPerformed
        // TODO add your handling code here:
        String query = jtfSintoma.getText();
        sintomasEncontrados = procesador.buscarSintomas(query);
        lmSintomas.clear();
        for(int i = 0; i < sintomasEncontrados.size(); i++){
            lmSintomas.addElement(sintomasNombre[sintomasEncontrados.get(i)]);
        }
    }//GEN-LAST:event_jbBuscarActionPerformed

    private void jbSintomasToSiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbSintomasToSiActionPerformed
        // TODO add your handling code here:
        int indice = jlSintomas.getSelectedIndex();
        if(indice == -1) {
            JOptionPane.showMessageDialog(null, "No selecciono ningun item");
            return;
        }
        procesador.setCheckPosition(sintomasEncontrados.get(indice), SINT_PRESENTE);
        procesador.sintToSi(sintomasEncontrados.get(indice));
        lmSintomas.remove(indice);
        lmSiSintomas.addElement(sintomasNombre[sintomasEncontrados.get(indice)]);
        sintomasEncontrados.remove(indice);
    }//GEN-LAST:event_jbSintomasToSiActionPerformed

    private void jbSiToSintomasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbSiToSintomasActionPerformed
        // TODO add your handling code here:
        int indice = jlSintomasPresentes.getSelectedIndex();
        if(indice == -1) {
            JOptionPane.showMessageDialog(null, "No selecciono ningun item");
            return;
        }
        int p = procesador.siToSint(indice);
        procesador.setCheckPosition(p, SINT);
        sintomasEncontrados.add(p);
        lmSiSintomas.remove(indice);
        if(sintomasNombre[p].indexOf(jtfSintoma.getText()) != -1){
            lmSintomas.addElement(sintomasNombre[p]);
        }
    }//GEN-LAST:event_jbSiToSintomasActionPerformed

    private void jbRealizarConsultaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbRealizarConsultaActionPerformed
        // TODO add your handling code here:
        procesador.recuperarCaso();
        jlEnfermedad.setText("Enfermedad Probable: " );
        jcbEnfermedades.setSelectedIndex(procesador.getEnfermedadWinner());
        jtaResultados.setText(procesador.getResultado());
    }//GEN-LAST:event_jbRealizarConsultaActionPerformed

    private void jbGuardarCasoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbGuardarCasoActionPerformed
        // TODO add your handling code here:
        String edad = jtfEdad.getText();
        if(edad.length() == 0){
            JOptionPane.showMessageDialog(null, "edad debe ser un dato numerico", "ERROR!!", 0);
                return;
        }
        for(int i = 0 ; i < edad.length(); i ++){
            if(edad.charAt(i) < '0' || edad.charAt(i) > '9') {
                JOptionPane.showMessageDialog(null, "edad debe ser un dato numerico", "ERROR!!", 0);
                return;
            }
        }
        procesador.guardarCaso(jtaResultados.getText(), jcbSexo.getSelectedIndex() , Integer.parseInt(jtfEdad.getText()), jcbEnfermedades.getSelectedIndex() -1 );
    }//GEN-LAST:event_jbGuardarCasoActionPerformed

    /** ArtKohonen kohonen;
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new RealizarConsultaMedicaGUI().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup bgOpciones;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JButton jbBuscar;
    private javax.swing.JButton jbCancelar;
    private javax.swing.JButton jbGuardarCaso;
    private javax.swing.JButton jbRealizarConsulta;
    private javax.swing.JButton jbSiToSintomas;
    private javax.swing.JButton jbSintomasToSi;
    private javax.swing.JComboBox jcbEnfermedades;
    private javax.swing.JComboBox jcbSexo;
    private javax.swing.JLabel jlEnfermedad;
    private javax.swing.JList jlSintomas;
    private javax.swing.JList jlSintomasPresentes;
    private javax.swing.JTextArea jtaResultados;
    private javax.swing.JTextField jtfEdad;
    private javax.swing.JTextField jtfSintoma;
    // End of variables declaration//GEN-END:variables

}
